<html>
    <head>
        <title>表格的增删改查</title>
        
        <script src="./plotly-latest.min.js"></script>
        
        <style>
            table{
                border-collapse: collapse;
                width: 100%;
                margin-top: 20px;
            }
            th,td{
                border: 1px solid rgb(15, 148,165);
                text-align: center;
                padding: 8px;
            }
            th{
                background-color:#ddd;
            }
            button{
                margin-left: 5px;
            }
        </style>
    </head>
    <body>
        <h1 style="text-align: center;">111表格的增删改查</h1>
        <button onclick="addRow()">新增数据</button>
        <table border="1" id="table">
         <tr>
            <th>姓名</th>
            <th>联系方式</th>
            <th>操作</th>
        </tr>
        <tr>
            <td>郭晓雨</td>
            <td>7862</td>
            <td>
                <button onclick="editRow(this)">编辑</button>
                <button onclick="deleteRow(this)">删除</button>
            </td>
        </tr>
        </table>
        <div id="plot"></div>

        <script src="./table.js"></script>
        <script src = "./plotly.js"></script>
    </body>
</html>